]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Center align Caps Lock and authentication messages
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 5 Feb 2020 18:26:44 +0000 (15:26 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 12 Feb 2020 19:29:48 +0000 (19:29 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922

data/theme/gnome-shell-sass/widgets/_login-dialog.scss
js/gdm/authPrompt.js

index 5613d9688a07642ecc0fff0b860d542eaaeaedfd..22ac8d1818d89e93861e03c3515887d96d27fa92 100644 (file)
@@ -85,6 +85,7 @@
 .login-dialog-logo-bin { padding: 24px 0px; }
 .login-dialog-banner { color: darken($osd_fg_color,10%); }
 .login-dialog-button-box { width: 23em; spacing: 5px; }
+.login-dialog-message { text-align: center; }
 .login-dialog-message-warning { color: $warning_color; }
 .login-dialog-message-hint { padding-top: 0; padding-bottom: 20px; }
 .login-dialog-user-selection-box { padding: 100px 0px; }
index 2fb5057b8423e599951dfffac7882af5b96d8ca2..6dc914a039ec1a9176fe10c787735e23bef8f830 100644 (file)
@@ -99,15 +99,19 @@ var AuthPrompt = GObject.registerClass({
 
         this._initEntryRow();
 
-        this._capsLockWarningLabel = new ShellEntry.CapsLockWarning();
+        this._capsLockWarningLabel = new ShellEntry.CapsLockWarning({
+            x_expand: true,
+            x_align: Clutter.ActorAlign.CENTER,
+        });
         this.add_child(this._capsLockWarningLabel);
 
         this._message = new St.Label({
             opacity: 0,
             styleClass: 'login-dialog-message',
-            x_expand: false,
             y_expand: true,
+            x_expand: true,
             y_align: Clutter.ActorAlign.START,
+            x_align: Clutter.ActorAlign.CENTER,
         });
         this._message.clutter_text.line_wrap = true;
         this._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;